import 'package:flutter/material.dart';

class DrawerContianer extends StatelessWidget {
  const DrawerContianer({Key key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Drawer(
      child: ListView(
        padding: EdgeInsets.zero,
        children: <Widget>[
          DrawerHeader(
            child: Text('Drawer Header'),
          ),
          ListTile(
            leading: Icon(Icons.app_registration),
            title: Text('Login'),
            onTap: () {
              Navigator.of(context).pushNamed("/login");
            },
          ),
          ListTile(
            leading: Icon(Icons.list),
            title: Text('List'),
            onTap: () {
               Navigator.of(context).pushNamed("/list");
            },
          ),
        ],
      ),
    );
  }
}
